package com.nova.edc.model.system;

import java.io.Serializable;
import java.util.Date;

import com.nova.frame.annotation.Id;
import com.nova.frame.annotation.Join;
import com.nova.frame.annotation.Table;
import com.nova.module.filter.annotation.FilterCondition;
import com.nova.module.filter.query.FilterMode;

@Table("t_login")
public class Login implements Serializable {

	private static final long serialVersionUID = 1L;

	@Id
	private Integer id;
	@FilterCondition(filterMode = FilterMode.LIKE)
	private String username;
	private Integer roleid;
	@Join(fieldName = "roleid", table = Role.class, joinColumn = "RoleName")
	private String roleName;
	private Integer logintypeid;
	private String password;
	private String memo;
	private Integer scrapped;
	private Date modifystamp;
	private String addby;
	private Date adddate;
	private String modifyby;
	private Date modifydate;
	private Integer customerinfoid;
	private Integer groupid;

	@Join(fieldName = "roleid", table = Role.class, joinColumn = "ord")
	private Integer ord;
	@Join(fieldName = "roleid", table = Role.class, joinColumn = "RoleType")
	private Integer roletype;
	@Join(fieldName = "groupid", table = Group.class, joinColumn = "GroupName")
	private String groupname;
	@Join(fieldName = "groupid", table = Group.class, joinColumn = "GroupCode")
	private Integer groupcode;
	@Join(fieldName = "customerinfoid", table = CustomerInfo.class, joinColumn = "CompanyCode")
	private String companycode;
	@Join(fieldName = "customerinfoid", table = CustomerInfo.class, joinColumn = "CustomerName")
	private String customername;
	private Integer parentid;
	private Integer descriptionState;

	public Integer getDescriptionState() {
		return descriptionState;
	}

	public void setDescriptionState(Integer descriptionState) {
		this.descriptionState = descriptionState;
	}

	public Login() {
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public Integer getRoleid() {
		return roleid;
	}

	public void setRoleid(Integer roleid) {
		this.roleid = roleid;
	}

	public String getRoleName() {
		return roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	public Integer getLogintypeid() {
		return logintypeid;
	}

	public void setLogintypeid(Integer logintypeid) {
		this.logintypeid = logintypeid;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getMemo() {
		return memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

	public Integer getScrapped() {
		return scrapped;
	}

	public void setScrapped(Integer scrapped) {
		this.scrapped = scrapped;
	}

	public Date getModifystamp() {
		return modifystamp;
	}

	public void setModifystamp(Date modifystamp) {
		this.modifystamp = modifystamp;
	}

	public String getAddby() {
		return addby;
	}

	public void setAddby(String addby) {
		this.addby = addby;
	}

	public Date getAdddate() {
		return adddate;
	}

	public void setAdddate(Date adddate) {
		this.adddate = adddate;
	}

	public String getModifyby() {
		return modifyby;
	}

	public void setModifyby(String modifyby) {
		this.modifyby = modifyby;
	}

	public Date getModifydate() {
		return modifydate;
	}

	public void setModifydate(Date modifydate) {
		this.modifydate = modifydate;
	}

	public Integer getCustomerinfoid() {
		return customerinfoid;
	}

	public void setCustomerinfoid(Integer customerinfoid) {
		this.customerinfoid = customerinfoid;
	}

	public String getGroupname() {
		return groupname;
	}

	public void setGroupname(String groupname) {
		this.groupname = groupname;
	}

	public Integer getGroupcode() {
		return groupcode;
	}

	public void setGroupcode(Integer groupcode) {
		this.groupcode = groupcode;
	}

	public String getCustomername() {
		return customername;
	}

	public void setCustomername(String customername) {
		this.customername = customername;
	}

	public Integer getOrd() {
		return ord;
	}

	public void setOrd(Integer ord) {
		this.ord = ord;
	}

	public Integer getRoletype() {
		return roletype;
	}

	public void setRoletype(Integer roletype) {
		this.roletype = roletype;
	}

	public Integer getParentid() {
		return parentid;
	}

	public void setParentid(Integer parentid) {
		this.parentid = parentid;
	}

	public String getCompanycode() {
		return companycode;
	}

	public void setCompanycode(String companycode) {
		this.companycode = companycode;
	}

	public Integer getGroupid() {
		return groupid;
	}

	public void setGroupid(Integer groupid) {
		this.groupid = groupid;
	}
}
